package czy.demo.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class DefaultListener {

    private static final Logger logger = LoggerFactory.getLogger(DefaultListener.class);

    @KafkaListener(topics = "default")
    public void onMessage(String message){
        logger.debug("收到主题default消息："+message);
    }

}
